-- GENERATED SPELL FOR [Conjurer Luminrath] --


function spell0_19544(pUnit, Event) --@Blink,Self--
pUnit:FullCastSpellOnTarget(36109,pUnit)
pUnit:RegisterEvent('Sorts_19544', 1305, 1)
end

function spell1_19544(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19544', 3000, 1)
end

function spell2_19544(pUnit, Event) --@Summon Dancing Sword,Self--
pUnit:FullCastSpellOnTarget(36110,pUnit)
pUnit:RegisterEvent('Sorts_19544', 30266, 1)
end

function Sorts_19544(pUnit, Event)
local choix_sorts_19544 = math.random(0, 2)
if choix_sorts_19544 == 0 then
pUnit:RegisterEvent('spell0_19544', 1, 1)
end
if choix_sorts_19544 == 1 then
pUnit:RegisterEvent('spell1_19544', 1, 1)
end
if choix_sorts_19544 == 2 then
pUnit:RegisterEvent('spell2_19544', 1, 1)
end
end

function mob19544_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19544', math.random(1500, 3000), 1)
end

function mob19544_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19544_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19544_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19544, 1, 'mob19544_Action')
RegisterUnitEvent(19544, 2, 'mob19544_Leave')
RegisterUnitEvent(19544, 3, 'mob19544_Kill')
RegisterUnitEvent(19544, 4, 'mob19544_Die')
